CFBundleURLTypes
key in your Info.plist file.For instance, if your Wallet’s name is Example Wallet, your custom scheme would be more likely as examplewallet://
, therefor you will add the following in your iOS’s Info.plist file:redirect
object in PairingMetadata
, the same way as Dapps would call your wallet’s redirect
object on their side:
A dapp would call examplewallet://wc?uri={pairingUri}
from their side when they request to connect with your wallet, and given the fact that examplewallet
is your registered custom scheme then your wallet will be opened.
examplewallet://
(or even better session.peer?.metadata.redirect?.native
object) from their side when they request to sign a transaction, and given the fact that session.peer?.metadata.redirect?.native
contains your registered custom scheme (examplewallet://
) then your wallet will be opened.
Redirecting back to dapp (proposer) after responding to a sign request:
launchUrlString()
from url_launcher official package was used as an example to explain the mechanism, you can choose whatever other package you would like.